package com.ybg.employee.business.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



@ApiModel("员工信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseEmployee {

    @ApiModelProperty("员工编号,自增主键")
    @TableId(value = "employee_id", type = IdType.AUTO)
    private Integer employeeId;

    @ApiModelProperty("员工身份证号")
    @TableField(value = "employee_pid",
            insertStrategy = FieldStrategy.NOT_EMPTY,
            updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer employeePid;

    @ApiModelProperty("员工电话")
    @TableField(value = "employee_phone",
            insertStrategy = FieldStrategy.NOT_EMPTY,
            updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer employeePhone;

    @ApiModelProperty("员工姓名")
    @TableField(value = "employee_name",
            insertStrategy = FieldStrategy.NOT_EMPTY,
            updateStrategy = FieldStrategy.NOT_EMPTY)
    private String employeeName;

    @ApiModelProperty("员工图片链接")
    @TableField(value = "employee_photo_md5",
            insertStrategy = FieldStrategy.NOT_EMPTY,
            updateStrategy = FieldStrategy.NOT_EMPTY)
    private String employeePhotoMd5;
}
